<?php
include '../../functions.php';
$img = imagecreatefromjpeg('./shanghai.jpg');
//获得图片的宽高
$x = imagesx($img);
$y = imagesy($img);
//echo $x,',',$y;
//获得图像的信息,返回是一个数组
$info = getimagesize('./shanghai.jpg');
p($info);






